package com.lucy.flow.domain.entity;

import com.lucy.common.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Entity
@Table(name = "flow_define")
@ApiModel(value = "流程定义",description = "")
public class FlowDefine extends BaseEntity {
    @ApiModelProperty("流程定义编码")
    @Column(name = "flow_define_code")
    String flowDefineCode;

    @ApiModelProperty("流程名称")
    @Column(name = "flow_name")
    String flowName;

    @ApiModelProperty("流程描述")
    @Column(name = "description",length = 512)
    String description;

    @ApiModelProperty(value = "流程定义",notes = "JSON字符串")
    @Column(name = "flow_define",length = 10240)
    String flowDefine;


    @ApiModelProperty(value = "流程状态",notes = "1 正常 0 被删除")
    @Column(name = "status")
    Integer status;
}
